﻿<%@ Page Title="" Language="C#" MasterPageFile="MasterPage.master" AutoEventWireup="true" CodeFile="ShowReport.aspx.cs" Inherits="WebUI_WECARE_Statistics" %>

<%@ Register Assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    
    <div style="width:960px; height:750px;margin:0 auto;">
    <h1 style="color:black;text-align:center;">這是統計報表頁面</h1>

    <div style="width:300px; height:100px;margin:0 auto;">
        <div style="width:200px;  float:left">
            <asp:Label ID="Label1" runat="server" Text="資料來源"></asp:Label><br />
            <asp:DropDownList ID="DropDownList1" runat="server">
                <asp:ListItem>使用提醒功能男女比例</asp:ListItem>
                <asp:ListItem>使用滿意度分布圖</asp:ListItem>
            </asp:DropDownList>
        </div>

        <div>
            <asp:Label ID="Label2" runat="server" Text="圖表型態"></asp:Label><br />
            <asp:DropDownList ID="DropDownList2" runat="server">
                <asp:ListItem>圓餅圖</asp:ListItem>
                <asp:ListItem>長條圖</asp:ListItem>
                <asp:ListItem></asp:ListItem>
            </asp:DropDownList>
        </div>
    </div>
    <div style="width:650px; height:500px;margin:0 auto;">
        <asp:Chart ID="Chart1" runat="server" DataSourceID="SqlDataSource1">
            <Series>
                <asp:Series Name="Series1" ChartType="Pie" XValueMember="Ptt_Sex" YValueMembers="Ptt_ExamRmd"></asp:Series>
            </Series>
            <ChartAreas>
                <asp:ChartArea Name="ChartArea1"></asp:ChartArea>
            </ChartAreas>
        </asp:Chart>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MedicareConnectionString %>" SelectCommand="SELECT [Ptt_ExamRmd], [Ptt_Sex] FROM [Patients]"></asp:SqlDataSource>
        <asp:Chart ID="Chart2" runat="server" DataSourceID="SqlDataSource1">
            <Series>
                <asp:Series Name="Series1" XValueMember="Ptt_Sex" YValueMembers="Ptt_ExamRmd">
                </asp:Series>
            </Series>
            <ChartAreas>
                <asp:ChartArea Name="ChartArea1">
                </asp:ChartArea>
            </ChartAreas>
        </asp:Chart>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server"></asp:SqlDataSource>
    </div>

    </div>
</asp:Content>

